package ms.authority.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

/**
 * Project Name: itye
 * File Name: User
 * Package Name: ms.authority.entity
 * Date: 2018/5/3  14:29
 * Copyright (c) 2018, tianyul All Rights Reserved.
 */
@Data
@Document(collection = "t_user")
public class User implements Serializable {

    private String id;//主键
    private String userName;//账号
    private String realName;//真实姓名
    private String pwd;//密码
    private Integer status;//状态 1 正常  2 停用
    private List<String> urls;//权限
    private Long createTime;//创建时间
    private Long updateTime;//修改时间
    private List<Permission> permissions;//权限
}
